{% extends 'base.html' %}
{% block title %}  - wild search {% endblock %}

{% block onload %}
onload="document.getElementById('fn_txt').focus()"
{% endblock %}

{% block content %}

<div id="content" style="position:absolute; top:20px; left:0px; background-color: #1A1A1A; layer-background-color: #1A1A1A;">
<table width="800">
<tr>
	  <td><p><span style="font-size:14px;color:#CCC">Wild search</span></p> 
	  Artist <input name="search" type="radio" value="/user/search" onChange="window.location=this.value;" /> 
	  Video <input name="search" type="radio" value="/user/search_video" checked/> 
	  
	 
</tr>
<tr>
<td>
	<form method="post" action="/user/search_video/">
		<input type="text" size="40" id="fn_txt" name="fn_txt" value="{{fn}}"> 
		<input type="submit" value="Search"><br/>
	</form>
</td>
</tr>
<tr>
<td><br></br>
		
videos list | {% if videos.has_previous %} <a href="?page={{ videos.previous_page_number }}" title="Previous page"><<<</a> {% endif %}
		Page {{ videos.number }} of {{ videos.paginator.num_pages }}.
		{% if videos.has_next %}
		<a href="?page={{ videos.next_page_number }}" title="Next page">>>></a>
		{% endif %}<br></br>
</td>
</tr>
</table>
	
	<table width="800">
		<tr>
      <th width="75"></th>
			<th width="75">Title</th>
			<th width="100">Description</th>
			<th width="50">Creator</th>
		</tr>
		{% for video in videos.object_list %}
		<tr>
        	<td>
            
            
							
            	{% load zdy_filter %}
							<a href="/video/{{video.id}}" title="Play video"><img src="/{{video.movie|get_file_name}}.jpg" border="5" height="80"></a>

           </td>
			<td><a href="/video/{{video.id}}/" title="View profile">{{video.title}}</a></td>
			<td>{{video.text}}</a></td>
			<td>{{video.user.username}}</a></td>
		</tr>
		{% endfor %}
	</table>
</div>
{% endblock %}